
<script src="http://static.paipaiimg.com/js/jquery.js"></script>
<input type="text" id="i" />
<span id="s"></span>
<script>
/*
jQuery("#i").keypress(function(e){alert(e);
	for(var x in e){
		if(e.hasOwnProperty(x)){
			jQuery("#s").html(jQuery("#s").html() + "<br />" + x+":\t"+e[x]);
		}
	}
});*/
function get(id){return document.getElementById(id);}
get("i").onkeypress = function(e){
	alert(window.event);
}
</script>